package com.yunduansing.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 字典表
 * </p>
 *
 * @author yunduansing
 * @since 2020-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_dictionary")
@ApiModel(value="DictionaryEntity对象", description="字典表")
public class DictionaryEntity implements Serializable,Comparable<DictionaryEntity> {

    private static final long serialVersionUID=1L;

    private Integer id;

    private Integer pid;

    private Integer categoryId;
    @TableField(value = "`name`")
    private String name;
    @TableField(value = "`key`")
    private String key;
    @TableField(value = "`value`")
    private String value;

    private String remark;

    private Integer seq;
    @TableField(value = "`status`")
    private Boolean status;

    @Override
    public int compareTo(DictionaryEntity o) {
        return this.seq-o.getSeq();
    }
}
